import request from '@/utils/request'

// 查询用户列表
export function userNumber() {
  return request({
    url: '/system/index/userNumber',
    method: 'get'
  })
}


export function yesterdayNumber() {
  return request({
    url: '/system/index/yesterdayNumber',
    method: 'get'
  })
}
export function taskNumber() {
  return request({
    url: '/system/index/taskNumber',
    method: 'get'
  })
}
export function getLineChart(type) {
  return request({
    url: '/system/index/getLineChart?type='+type,
    method: 'get'
  })
}
export function getUserStatistics() {
  return request({
    url: '/system/index/getUserStatistics',
    method: 'get'
  })
}
export function isAdmin() {
  return request({
    url: '/system/index/isAdmin',
    method: 'get'
  })
}
export function getRatio(configKey) {
  return request({
    url: '/system/index/getRatio?configKey='+configKey,
    method: 'get'
  })
}

export function setRatio(data) {
  return request({
    url: '/system/index/setRatio',
    method: 'post',
    data: data
  })
}
